Optimal. Leaf size=27 \[ \frac{\text{PolyLog}\left (2,\frac{g (c+d x)}{a+b x}\right )}{b c-a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0656417, antiderivative size = 27, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.053, Rules used = {2502, 2315} \[ \frac{\text{PolyLog}\left (2,\frac{g (c+d x)}{a+b x}\right )}{b c-a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2502
Rule 2315
Rubi steps
\begin{align*} \int \frac{\log \left (\frac{a-c g+(b-d g) x}{a+b x}\right )}{(a+b x) (c+d x)} \, dx &=-\frac{g \operatorname{Subst}\left (\int \frac{\log (x)}{1-x} \, dx,x,\frac{a-c g+(b-d g) x}{a+b x}\right )}{b (a-c g)-a (b-d g)}\\ &=\frac{\text{Li}_2\left (\frac{g (c+d x)}{a+b x}\right )}{b c-a d}\\ \end{align*}
Mathematica [B] time = 0.241122, size = 320, normalized size = 11.85 \[ \frac{-2 \text{PolyLog}\left (2,\frac{(a+b x) (b-d g)}{g (b c-a d)}\right )+2 \text{PolyLog}\left (2,\frac{(b-d g) (c+d x)}{b c-a d}\right )-2 \text{PolyLog}\left (2,\frac{b (c+d x)}{b c-a d}\right )+\log ^2\left (\frac{g (b c-a d)}{(a+b x) (b-d g)}\right )+2 \log \left (-\frac{b (a+b x-c g-d g x)}{g (b c-a d)}\right ) \log \left (\frac{g (b c-a d)}{(a+b x) (b-d g)}\right )-2 \log \left (\frac{a+b x-c g-d g x}{a+b x}\right ) \log \left (\frac{g (b c-a d)}{(a+b x) (b-d g)}\right )+2 \log (c+d x) \log \left (-\frac{d (a+b x-c g-d g x)}{b c-a d}\right )-2 \log (c+d x) \log \left (\frac{a+b x-c g-d g x}{a+b x}\right )-2 \log (c+d x) \log \left (\frac{d (a+b x)}{a d-b c}\right )}{2 b c-2 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.065, size = 45, normalized size = 1.7 \begin{align*} -{\frac{1}{ad-bc}{\it dilog} \left ({\frac{-dg+b}{b}}+{\frac{g \left ( ad-bc \right ) }{b \left ( bx+a \right ) }} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.41181, size = 464, normalized size = 17.19 \begin{align*}{\left (\frac{\log \left (b x + a\right )}{b c - a d} - \frac{\log \left (d x + c\right )}{b c - a d}\right )} \log \left (-\frac{c g +{\left (d g - b\right )} x - a}{b x + a}\right ) + \frac{\log \left (b x + a\right )^{2} - 2 \, \log \left (b x + a\right ) \log \left (d x + c\right )}{2 \,{\left (b c - a d\right )}} - \frac{\log \left (b x + a\right ) \log \left (\frac{{\left (d g - b\right )} a +{\left (b d g - b^{2}\right )} x}{b c g - a d g} + 1\right ) +{\rm Li}_2\left (-\frac{{\left (d g - b\right )} a +{\left (b d g - b^{2}\right )} x}{b c g - a d g}\right )}{b c - a d} + \frac{\log \left (d x + c\right ) \log \left (\frac{c d g - b c +{\left (d^{2} g - b d\right )} x}{b c - a d} + 1\right ) +{\rm Li}_2\left (-\frac{c d g - b c +{\left (d^{2} g - b d\right )} x}{b c - a d}\right )}{b c - a d} + \frac{\log \left (b x + a\right ) \log \left (\frac{b d x + a d}{b c - a d} + 1\right ) +{\rm Li}_2\left (-\frac{b d x + a d}{b c - a d}\right )}{b c - a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.476334, size = 78, normalized size = 2.89 \begin{align*} \frac{{\rm Li}_2\left (\frac{c g +{\left (d g - b\right )} x - a}{b x + a} + 1\right )}{b c - a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\log \left (-\frac{c g +{\left (d g - b\right )} x - a}{b x + a}\right )}{{\left (b x + a\right )}{\left (d x + c\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]